home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / Install / program files / Borland / BDS / 3.0 / Demos / Delphi.Net / CLR / TrayIconApp / MouseButtonSwapper.dpr < prev    next >
Encoding:
Text File  |  2004-10-22  |  5.0 KB  |  97 lines

  1. { *********************************************************************** }
  2. {                                                                         }
  3. { Copyright (c) 2003 Borland Software Corporation                         }
  4. {                                                                         }
  5. { Written by: Rick Beerendonk (rick@beerendonk.com)                       }
  6. {             Microloon BV                                                }
  7. {             The Netherlands                                             }
  8. {                                                                         }
  9. { ----------------------------------------------------------------------- }
  10. { THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY  }
  11. { KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE     }
  12. { IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A              }
  13. { PARTICULAR PURPOSE.                                                     }
  14. {                                                                         }
  15. { *********************************************************************** }
  16.  
  17. program MouseButtonSwapper;
  18.  
  19. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.dll'}
  20. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Data.dll'}
  21. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Drawing.dll'}
  22. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.Windows.Forms.dll'}
  23. {%DelphiDotNetAssemblyCompiler '$(SystemRoot)\microsoft.net\framework\v1.1.4322\System.XML.dll'}
  24. {$R 'Borland.Examples.Delphi.MouseButtonSwapper.Main.TMainForm.resources' 'Borland.Examples.Delphi.MouseButtonSwapper.Main.resx'}
  25. {$R 'Borland.Examples.Delphi.MouseButtonSwapper.Info.TInfoBox.resources' 'Borland.Examples.Delphi.MouseButtonSwapper.Info.resx'}
  26. {$R 'MouseButtonSwapper.res' 'MouseButtonSwapper.rc'}
  27.  
  28. uses
  29.   System.Reflection,
  30.   System.Runtime.CompilerServices,
  31.   System.Windows.Forms,
  32.   Borland.Examples.Delphi.MouseButtonSwapper.Main in 'Borland.Examples.Delphi.MouseButtonSwapper.Main.pas' {Borland.Examples.Delphi.MouseButtonSwapper.Main.TMainForm: System.Windows.Forms.Form},
  33.   Borland.Examples.Delphi.MouseButtonSwapper.Info in 'Borland.Examples.Delphi.MouseButtonSwapper.Info.pas' {Borland.Examples.Delphi.MouseButtonSwapper.Info.TInfoBox: System.Windows.Forms.Form};
  34.  
  35. {$REGION 'Program/Assembly Information'}
  36. //
  37. // General Information about an assembly is controlled through the following
  38. // set of attributes. Change these attribute values to modify the information
  39. // associated with an assembly.
  40. //
  41. [assembly: AssemblyTitle('Mouse Button Swapper')]
  42. [assembly: AssemblyDescription('Example for Borland« Delphi written by Rick Beerendonk')]
  43. [assembly: AssemblyConfiguration('')]
  44. [assembly: AssemblyCompany('Borland« Software Corporation')]
  45. [assembly: AssemblyProduct('Mouse Button Swapper')]
  46. [assembly: AssemblyCopyright('Copyright ⌐ 2003 Borland« Software Corporation.')]
  47. [assembly: AssemblyTrademark('')]
  48. [assembly: AssemblyCulture('')]
  49.  
  50. //
  51. // Version information for an assembly consists of the following four values:
  52. //
  53. //      Major Version
  54. //      Minor Version 
  55. //      Build Number
  56. //      Revision
  57. //
  58. // You can specify all the values or you can default the Revision and Build Numbers 
  59. // by using the '*' as shown below:
  60.  
  61. [assembly: AssemblyVersion('1.0.*')]
  62.  
  63. //
  64. // In order to sign your assembly you must specify a key to use. Refer to the 
  65. // Microsoft .NET Framework documentation for more information on assembly signing.
  66. //
  67. // Use the attributes below to control which key is used for signing. 
  68. //
  69. // Notes: 
  70. //   (*) If no key is specified, the assembly is not signed.
  71. //   (*) KeyName refers to a key that has been installed in the Crypto Service
  72. //       Provider (CSP) on your machine. KeyFile refers to a file which contains
  73. //       a key.
  74. //   (*) If the KeyFile and the KeyName values are both specified, the 
  75. //       following processing occurs:
  76. //       (1) If the KeyName can be found in the CSP, that key is used.
  77. //       (2) If the KeyName does not exist and the KeyFile does exist, the key 
  78. //           in the KeyFile is installed into the CSP and used.
  79. //   (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
  80. //       When specifying the KeyFile, the location of the KeyFile should be
  81. //       relative to the project output directory. For example, if your KeyFile is
  82. //       located in the project directory, you would specify the AssemblyKeyFile 
  83. //       attribute as [assembly: AssemblyKeyFile('mykey.snk')], provided your output
  84. //       directory is the project directory (the default).
  85. //   (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
  86. //       documentation for more information on this.
  87. //
  88. [assembly: AssemblyDelaySign(false)]
  89. [assembly: AssemblyKeyFile('')]
  90. [assembly: AssemblyKeyName('')]
  91. {$ENDREGION}
  92.  
  93. [STAThread]
  94. begin
  95.   Application.Run(TMainForm.Create);
  96. end.
  97.